//
//  TheMap.h
//  XiangMu
//
//  Created by 康世标 on 15/10/15.
//  Copyright (c) 2015年 康世标. All rights reserved.
//

#define KEY @"f4d89ae966a8e4c3ad22db508de41c47"

#import <UIKit/UIKit.h>
#import <MAMapKit/MAMapKit.h>
#import <AMapSearchKit/AMapSearchAPI.h>

typedef void(^MyMapBlock)(NSString * addr);

@interface TheMap : UIViewController<MAMapViewDelegate,AMapSearchDelegate,UITableViewDataSource,UITableViewDelegate>

@property (strong, nonatomic)  MAMapView * mapview;
@property (strong, nonatomic)  AMapSearchAPI * search;

@property (assign, nonatomic) CGFloat latitude;
@property (assign, nonatomic) CGFloat longitude;
@property (strong, nonatomic) NSArray * titArr;

@property (strong, nonatomic) AMapAddressComponent * add;

@property (strong, nonatomic) NSMutableArray * arr;

@property (weak, nonatomic) IBOutlet UITableView * tableView ;

@property (weak, nonatomic) IBOutlet UIView * myView;

@property (assign, nonatomic) NSInteger index;

@property (copy, nonatomic) MyMapBlock  block;

@end
